<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>工程云盘</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" href="../../css/mui.min.css" />
		<link rel="stylesheet" href="../../css/index.css" />
		<link rel="stylesheet" href="../../css/minirefresh.css" />
	</head>

	<style>
		/*start*/
		
		.mui-table-view {
			margin-top: 0;
		}
		
		#home_scroll .mui-table-view {
			/*padding-bottom: 30px;*/
			margin-top: 50px;
		}
		
		#home_scroll .mui-scroll {
			margin-top: 15px;
		}
		
		.mui-input-clear {
			width: 86% !important;
			background-color: #f2f2f2 !important;
		}
		
		.mui-search {
			text-align: center;
			position: fixed;
			z-index: 10;
			width: 100%;
			top: 50px;
			background: #fff;
		}
		
		.mui-search .mui-placeholder {
			left: 12px;
			bottom: 15px;
			text-align: left;
			line-height: 35px;
			margin-top: 10px;
		}
		
		.mui-active::before {
			left: 12px !important;
			line-height: 30px;
		}
		
		.mui-icon-clear {
			right: 43px !important;
		}
		
		.mui-icon-clear::before {
			line-height: 40px;
		}
		
		input[type=search] {
			border-radius: 3px;
			margin-top: 10px;
		}
		
		.title-out {
			height: 50px;
			margin-top: 6px;
			position: fixed;
			z-index: 11;
			background: #fff;
			width: 100%;
			top: 44px;
			border-bottom: 1px solid #e6e6e6;
		}
		
		.mui-content {
			background-color: #fff;
		}
		
		.mui-table-view-cell {
			padding: 14px 15px;
		}
		
		.list-img {
			width: 33px;
		}
		
		.list-title {
			font-size: 16px;
			color: #333;
		}
		
		.list-detail {
			float: left;
		}
		
		.list-time {
			font-size: 12px;
			color: #999;
		}
		
		.list-detail-img {
			line-height: 35px
		}
		
		.list-detail-font {
			margin-left: 12px;
			width: 80%;
		}
		
		.mui-table-view-cell:after {
			background-color: #e6e6e6;
		}
		
		.mui-table-view:before,
		.mui-table-view:after {
			background-color: #e6e6e6;
			height: 0px;
		}
		
		.circle {
			position: absolute;
			right: 18px;
			top: 30px;
			background: #fff;
			border: 1px solid #ccc;
			border-radius: 20px;
			padding: 4px;
		}
		
		.search-result {
			display: block;
			font-size: 14px;
			color: #999999;
			border-top: 1px solid #e6e6e6;
			margin-top: -4px;
			text-align: left;
			z-index: 10;
			position: absolute;
			top: 109px;
			width: 100%;
			height: 32px;
			background: #fff;
			line-height: 30px;
			display: none;
		}
		
		.search-result span {
			margin-left: 16px;
		}
		
		.footer {
			width: 100%;
			height: 50px;
			z-index: 11;
			position: absolute;
			bottom: 0px;
			background-color: #333;
			display: none;
			color: #fff;
			font-size: 12px;
			text-align: center;
		}
		
		.mui-icon-checkmarkempty {
			background: #0487d0 !important;
			padding: 0px !important;
			width: auto;
			height: auto;
			font-size: 16px;
			color: #fff;
			border: none;
		}
		
		.footer-img {
			width: 18px;
			margin-left: 3px;
		}
		
		.footer-img-out {
			margin-top: 5px;
			float: left;
			width: 20%;
		}
		
		.footer-font {
			margin-top: 1px;
			display: inline-block;
			color: #fff;
		}
		/**
 * 弹出框样式start
 */
		
		input::-webkit-input-placeholder {
			font-size: 16px;
			color: #999;
			line-height: 20px;
		}
		
		input::-moz-placeholder {
			font-size: 16px;
			color: #999;
			background-color: #f2f2f2;
			padding: 20px 0;
		}
		
		input::-moz-placeholder {
			font-size: 16px;
			color: #999;
			background-color: #f2f2f2;
			padding: 20px 0;
		}
		
		input::-ms-input-placeholder {
			font-size: 16px;
			color: #999;
			background-color: #f2f2f2;
			padding: 20px 0;
		}
		
		.mui-popup {
			border-radius: 3px;
			width: 300px;
		}
		
		.mui-popup-inner {
			border-radius: 1px 1px 0 0;
		}
		
		.mui-popup-button:first-child {
			border-radius: 0 0 0 3px;
		}
		
		.mui-popup-button:last-child {
			border-radius: 0 0 3px;
		}
		
		.mui-popup-title {
			padding: 10px;
			font-size: 20px;
			color: #333;
		}
		
		.mui-popup-button {
			font-size: 16px;
			color: #666;
		}
		
		.mui-popup-button-bold {
			color: #0487d0;
		}
		
		.mui-popup-inner:after {
			background-color: #E6E6E6;
		}
		
		.mui-popup-input input {
			padding: 0px;
			border: none;
			margin: 15px 0;
			border-radius: 3px;
			padding: 20px 0;
			border: 1px solid #f2f2f2;
			margin-top: 8px;
			background-color: #f2f2f2;
		}
		/**
 * 弹出框样式end
 */
		
		span.version {
			border: 1px solid #00abbf;
			color: #00abbf;
			height: 17px;
			display: inline-block;
			font-size: 10px;
			line-height: 17px;
			padding: 0px;
			border-radius: 3px;
			margin-left: 6px;
		}
		
		.share {
			font-size: 12px;
			color: #666;
			margin-top: 46px;
			display: none;
			background: transparent;
			font-size: 16px;
		}
		
		.blue {
			color: #0487d0;
		}
		
		.share-img {
			width: 13px;
			height: 13px;
			margin-bottom: 5px;
		}
		
		.mui-popover.mui-popover-action .mui-table-view {
			margin: 0px;
			margin-top: 6px;
			border-radius: 0px;
		}
		
		.mui-popover .mui-table-view {
			background: #fff;
		}
		
		#share .mui-table-view-cell,
		#delete .mui-table-view-cell {
			padding: 15px 15px;
		}
		
		.cancel-share {
			color: #333;
		}
		
		.mui-popover.mui-popover-action .mui-table-view .mui-table-view-cell:after {
			background-color: #f2f2f2;
		}
		
		.op-img {
			width: 45px;
			height: 45px;
		}
		
		.op {
			display: inline-block;
			width: 32%;
		}
		
		.op-font {
			font-size: 12px;
			color: #666;
		}
		
		#share .mui-table-view-cell.mui-active {
			background-color: #fff;
		}
		
		.tip {
			font-size: 14px;
			color: #999;
		}
		
		.del {
			font-size: 16px;
			color: #cc0a0a;
		}
		
		.cancel {
			font-size: 16px;
			color: #333;
		}
		.minirefresh-theme-default .minirefresh-downwrap{
			top: 156px;
		}
		
		/*隐藏点击滚动顶端按钮*/
		
		.minirefresh-totop {
			display: none;
		}
		.minirefresh-scroll {
			background: transparent;
		}
		.mui-backdrop {
			background-color: rgba(0, 0, 0, .2);
		}
		.mui-search .mui-placeholder{
			pointer-events: none;
		}
	</style>

	<body>

		<!-- 主页面标题 -->
		<header class="mui-bar mui-bar-nav">
			<!--<a class="mui-icon mui-action-menu mui-icon-bars mui-pull-left" id="menus" href="#offCanvasSide"></a>-->
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" id="back"></a>
			<h1 class="mui-title">工程云盘</h1>
		</header>

		<div class="mui-input-row mui-search" >
			<input type="search" id="searchVal" autofocus="autofocus"  class="mui-input-clear" placeholder="输入查找内容">
			<span id="searchResult">搜索</span>
		</div>

		<span class="search-result">
					<span id="search-result">搜索结果()</span>
		</span>

		<!-- 主页面内容容器 -->
		<div id="home_scroll" class="minirefresh-wrap">

			<div class="minirefresh-scroll" id="list">

				<ul class="mui-table-view table" id="tableList">
					<li class="mui-table-view-cell filelist" v-for="item in list" :fileId="item.fileId" :fileType="item.fileType" :fileName="item.fileName">
						<div class="list-detail list-detail-img">
							<img class="list-img" :src="item | format" />
						</div>
						<div class="list-detail list-detail-font">
							<p class="list-title">{{item.fileName }}<span class="version" v-show=" item.fileName.indexOf('.') != -1 ? true:false ">&nbsp;版本<span>{{item.fileVersion}}</span>&nbsp;</span>
							</p>
							<p class="list-time">{{item.fileCreateTime | switchingTime}}</p>
						</div>

						<div class="circle"></div>
					</li>
				</ul>
			</div>
		</div>
		<div class="footer">
			<div class="footer-img-out" id="downloads">
				<img class="footer-img" src="../../icon/gcyp_ss1.png" />
				<br />
				<span class="footer-font">下载</span>
			</div>

			<div class="footer-img-out">
				<a href="#share">
					<img class="footer-img" src="../../icon/gcyp_ss2.png" />
					<br />
					<span class="footer-font">分享</span>
				</a>
			</div>

			<div class="footer-img-out">
				<a href="#delete">
					<img class="footer-img" src="../../icon/gcyp_ss3.png" />
					<br />
					<span class="footer-font">删除</span>
				</a>
			</div>

			<div class="footer-img-out" id='promptBtn'>
				<img class="footer-img" src="../../icon/gcyp_ss4.png" />
				<br />
				<span class="footer-font">重命名</span>
			</div>

			<div class="footer-img-out">
				<img class="footer-img" src="../../icon/gcyp_ss5.png" />
				<br />
				<span class="footer-font">更多</span>
			</div>

		</div>

		<!--
        	时间：2018-12-10
        	描述：操作表分享
        -->
		<div id="share" class="mui-popover mui-popover-action mui-popover-bottom">
			<ul class="mui-table-view">
				<li class="mui-table-view-cell">
					<div class="op" data-id="1">
						<img class="op-img" src="../../icon/gcyp_fx2.png" />
						<br />
						<span class="op-font">用户中转站</span>
					</div>
					<div class="op" data-id="2">
						<img class="op-img" src="../../icon/gcyp_fx3.png" />
						<br />
						<span class="op-font">密钥分享</span>
					</div>
					<div class="op" data-id="3">
						<img class="op-img" src="../../icon/gcyp_fx1.png" />
						<br />
						<span class="op-font">公共分享</span>
					</div>
				</li>
				<li class="mui-table-view-cell">
					<a href="#" style="color: #333;">取消</a>
				</li>
			</ul>
		</div>

		<!--
        	时间：2018-12-10
        	描述：操作表删除
        -->
		<div id="delete" class="mui-popover mui-popover-action mui-popover-bottom">
			<ul class="mui-table-view">
				<li class="mui-table-view-cell">
					<a href="#" class="tip">删除后，该文件将永久删除！</a>
				</li>
				<li class="mui-table-view-cell">
					<a href="#" class="del">删除</a>
				</li>
			</ul>
			<ul class="mui-table-view">
				<li class="mui-table-view-cell">
					<a href="#picture" class="cancel">取消</a>
				</li>
			</ul>
		</div>

		<script type="text/javascript" src="../../js/minirefresh.js"></script>
		<script src="../../js/mui.min.js"></script>
		<script type="text/javascript" src="../../js/vue2.5.js"></script>
		<script type="text/javascript" src="../../js/jquery-3.2.1.min.js"></script>
		<script type="text/javascript" src="../../components/attachIcon.js"></script>
		<script type="text/javascript" src="../../js/globalVariable.js"></script>
		<script type="text/javascript">
			
			//=======================遮罩层start================================================
//			var mask = mui.createMask(function() { //遮罩层callback事件
//				return true; //返回true关闭mask
//			});
//
//			$(document).on('tap', '.mask', function() {
//					mask.close();
//				    parent.lefts();
//				
//			})
//
//			$(document).on('tap', '#menus', function() {
//				mask.show()
//				parent.lefts();
//				$(".mui-backdrop").addClass('mask');
//			})
//
//			//触发父元素事件
//			$('body').on('swipeleft', function() {
//				mask.close()
//				parent.sleft();
//			})
//
//			$('body').on('swiperight', function() {
//				mask.show();
//				parent.sright();
//				$(".mui-backdrop").addClass('mask');
//			})

			//=======================遮罩层end================================================
			
			//=====================================start=========================================			
			// 上拉加载下拉刷新
			var miniRefresh;
			var pageNums = 1;

			function updown() {
				var loadFull = new Object();
				//loadFull.isEnable = false;
				//loadFull.isAuto = false;

				// 引入任何一个主题后，都会有一个 MiniRefresh 全局变量
				miniRefresh = new MiniRefresh({
					container: '#home_scroll',
					//isUseBodyScroll:true,
					down: {
						// 是否每次下拉完毕后默认重置上拉，为false时下拉刷新后不会自动重置上拉状态
						//isAutoResetUpLoading: true,
						//isAuto: true,
						callback: function() {

							setTimeout(function() {

								pageNums = 1;
								searchIng('down');

								//miniRefresh.endDownLoading();

							}, 500)

						}
					},
					up: {
						//isAuto:false,
						loadFull: loadFull,
						callback: function() {
							$(".minirefresh-downwrap").hide();
							// 上拉事件
							//setTimeout(function() {
								searchIng('up');
							//}, 500)
						},
					}
				});

			}

			//=====================================end=========================================

			mui.init();
			/**
			 * 折叠面板
			 */

			var filiList = new Vue({
				el: '#list',
				data: {
					list: [],
					fileId: null,
					fileType: null,
					fileUrl: "",
					fileName: "",
					fileIdList: "", //分享存储的id字符串组
					shareName: [], //分享的名字
					groupId: null,
					dirId: null
				},
				watch: {
					list: function() {
						this.$nextTick(function() {
							operation();
						})
					}
				},
				mounted: function() {
					operation();

				}
			});

			/*获取工程云盘页面传过来的groupId*/
			function GetQueryString(name) {
				var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
				var r = window.location.search.substr(1).match(reg);
				console.log("r:" + r);
				if(r != null) return unescape(r[2]);
				return null;
			}
			/*获取登录数据*/
			userInfo = getGlobalUserInfo();
			filiList.groupId = GetQueryString("groupId");
			filiList.dirId = GetQueryString("dirId");
			mui('body').on('tap', '.mui-popover-action li>a', function() {
				var a = this,
					parent;
				//根据点击按钮，反推当前是哪个actionsheet
				for(parent = a.parentNode; parent != document.body; parent = parent.parentNode) {
					if(parent.classList.contains('mui-popover-action')) {
						if(a.classList.contains('del')) {
							deletes();
						}
						break;
					}
				}
				//关闭actionsheet
				mui('#' + parent.id).popover('toggle');
			});

			/**
			 * 版本控制
			 */
			Vue.filter('version', function(val) {
				var sub = val.indexOf('.');
				if(sub != -1) {
					return true;
				} else {
					return false;
				}
			});

			/**
			 * 弹出框
			 */
			document.getElementById("promptBtn").addEventListener('tap', function(e) {
				e.detail.gesture.preventDefault(); //修复iOS 8.x平台存在的bug，使用plus.nativeUI.prompt会造成输入法闪一下又没了
				var btnArray = ['取消', '确定'];
				mui.prompt(' ', '请输入新文件夹名', '重命名', btnArray, function(e) {
					if(e.index == 1) {} else {}
				})
			});

			/*下载*/
			document.getElementById("downloads").addEventListener('tap', function(e) {
				$.ajax({
					type: 'POST',
					url: userInfo.url + '/cloud/downloadFile?type=json',
					beforeSend: function(request) {},
					data: {
						projectId: userInfo.projId,
						groupId: filiList.groupId,
						fileId: filiList.fileId,
						tokenId: userInfo.tokenId,
					},
					dataType: 'json',
					success: function(data) {
						//登陆失效
							if(data.responseInfo.responseCode!=1){
								tokenInvalid(data);
								return;
								}
						console.log("4.8", data);
						filiList.fileUrl = data.fileUrl;
						createDownload();
					}
				});
			});
			/*下载并打开文件 开始*/
			function createDownload() {
				//判断文件是否已经下载
				plus.io.resolveLocalFileSystemURL('_downloads/' + filiList.fileName, function(entry) {
					if(entry.isFile) {
						mui.toast('已经下载');
						//              mui.alert(entry.fullPath);
						plus.runtime.openFile('_downloads/' + filiList.fileName, {}, function(e) { //调用第三方应用打开文件
							alert('打开失败');
						});
					}
				}, function(e) {
					dBase();
				});
			}

			function dBase() {
				plus.nativeUI.showWaiting("加载中...");
				var dtask = null;
				if(dtask) {
					console.log(JSON.stringify(dtask));
					mui.toast('下载任务已经存在,请耐心等待');
					return;
				}
				dtask = plus.downloader.createDownload(filiList.fileUrl, {
					method: 'GET'
				}, function(d, status) {
					plus.runtime.openFile(d.filename, {}, function(e) { //调用第三方应用打开文件
						alert('打开失败');
					});
				});
				dtask.addEventListener("statechanged", function(task, status) {

					if(!dtask) {
						return;
					}
					switch(task.state) {
						case 1:
							mui.toast('开始下载...');
							break; //开始
						case 2:
							mui.toast('链接到服务器...');
							break; //链接到服务器
						case 3:
							break;
						case 4:
							plus.nativeUI.closeWaiting();
//							mui.toast('下载完成');
	                        mui.toast('正在下载...');
							break;
					}
				});
				dtask.start();
			}
			/*下载并打开文件 结束*/

			new Vue({
				el: '#search',
				data: {
					search: null
				},
			});

			/*获取文件图标*/
			Vue.filter('format', function(value) {
				var srcs;
				if(value.fileType == 1) {
					srcs = '../../icon/gcyp_wjj.png';
				}
				if(value.fileType == 2) {
					var i = tool.getAttachIcon(value.fileName)
					srcs = "../../" + i.src;
				}
				return srcs;
			});

			/*转换日期类型*/
			Vue.filter('switchingTime', function(time) {
				var date = new Date(time);
				var year = date.getFullYear();
				var month = date.getMonth() + 1;
				var day = date.getDate();
				var hour = date.getHours();
				var minutes = date.getMinutes();
				var finish = month + '-' + day + " " + hour + ":" + minutes;
				return finish;
			});

			//监听清除图标的点击事件
			setTimeout(function() {
				mui(".mui-icon-clear")[0].addEventListener('tap', function() {
					$(".minirefresh-downwrap").hide();
					pageNums = 1;
					miniRefresh.resetUpLoading();
					searchIng('up');	
				});
			}, 500)

			//监听input输入框的内容变化：
			/*mui(".mui-input-clear")[0].addEventListener('input', function() {
				searchIng();
			});*/
			var isSearched = false;
			$("#searchResult").on('tap',function(){
				
					pageNums = 1;
				
				if(!isSearched){
					updown();
				}else{
					miniRefresh.resetUpLoading();
					searchIng('up');
				}
				
				isSearched = true;
				
			});

			/**
			 * 搜索
			 */
			//	var groupId=GetQueryString("groupId");
			function searchIng(arg) {
				//alert(arg);
				var val = $('#searchVal').val();
				if(val == "") {
					mui.toast("请输入需要搜索的内容！");
					//$("#tableList").css("display", "none");
					setResult(0);
					miniRefresh.endUpLoading(true);
					$(".upwrap-tips").html('请输入搜索内容');
					return;
				}
				$.ajax({
					type: 'GET',
					url: userInfo.url + '/cloud/getFileList?type=json',
					beforeSend: function(request) {
						request.setRequestHeader('appType', 7);
					},
					data: {
						tokenId: userInfo.tokenId,
						projectId: userInfo.projId,
						groupId: filiList.groupId,
						dirId: filiList.dirId,
						pageIndex: pageNums,
						pageSize: 6,
						fileName: val,
					},
					dataType:'json',
					success: function(data) {
						//登陆失效
							if(data.responseInfo.responseCode!=1){
								tokenInvalid(data);
								return;
								}
						if(data.responseInfo.responseCode != 1){
							mui.toast(data.responseInfo.responseMessage);
							miniRefresh.endUpLoading(true);
							return;
						}
						//console.log("4.3", data);
						if(data.fileList != undefined) {
							$(".minirefresh-downwrap").show();
							$("#tableList").css("display", "block");
							if(pageNums == 1) {
								filiList.list = data.fileList;
							} else {
								filiList.list = filiList.list.concat(data.fileList);
							}
							setResult(filiList.list.length);
						} else {
							if(pageNums == 1){
								filiList.list = [];
								setResult(0);
							}
							
							if(filiList.list.length == 0){
								$(".minirefresh-downwrap").hide();
							}else{
								$(".minirefresh-downwrap").show();
							}
							
							//$("#tableList").css("display", "none");
							
							//miniRefresh.endUpLoading(true);
						}
						
						
						if(arg == 'down') {
							miniRefresh.endDownLoading();
						} else if(arg == 'up') {
							miniRefresh.endUpLoading(data.fileList == undefined);
						}
						
						pageNums++;

					},
					error:function(){
						miniRefresh.endUpLoading(true);
					}
				});

			}

			//设置搜索结果
			function setResult(len) {
				$('#search-result').html('搜索结果(' + len + ')');
				$('.search-result').css('display', 'block');
				$('#tableList').css('margin-top', '141px');
			}

			var CLASSNAME = 'mui-icon mui-icon-checkmarkempty';

			/**
			 * 云盘分享页操作
			 */
			function operation() {
				$('.mui-table-view-cell').unbind();
				$('.mui-table-view-cell').on('tap', function() {
					$("#searchVal").blur();
					var a = this;
					if($('.circle').hasClass('padding')) {
						if($(this).find('.circle').hasClass(CLASSNAME)) {
							$(this).find('.circle').removeClass(CLASSNAME);
							//判断是否还有选中的列表
							if(!$('#tableList').find('.circle').hasClass(CLASSNAME)) {
								$('.circle').css('padding', '4px').css('top', '30px').removeClass('padding');
								$('.footer').hide();
								$('#home_scroll .mui-scroll').css('padding-bottom', '0px');
								return;
							}

						} else {
							if(a.classList.contains("filelist")) {
								filiList.fileId = $(this).attr('fileId');
								filiList.fileType = $(this).attr('fileType');
								filiList.fileName = $(this).attr('fileName');
								filiList.shareName.push(filiList.fileName);
								filiList.fileIdList = filiList.fileIdList + "," + filiList.fileId
								console.log('选中的是文件列表');
							}
							$(this).find('.circle').addClass(CLASSNAME);
						}

					} else {
						$('.circle').css('padding', '7px').css('top', '28px').addClass('padding');
						$('.footer').show();
						$('#home_scroll .mui-scroll').css('padding-bottom', '40px');
					}

				});
			}

			/*删除*/
			function deletes() {
				console.log(filiList.fileId + "--" + filiList.fileType)
				$.ajax({
					type: 'POST',
					url: userInfo.url + '/cloud/deleteFile?type=json',
					beforeSend: function(request) {},
					data: {
						projectId: userInfo.projId,
						groupId: filiList.groupId,
						fileId: filiList.fileId,
						fileType: filiList.fileType,
						tokenId: userInfo.tokenId
					},
					dataType: 'json',
					success: function(data) {
						//登陆失效
							if(data.responseInfo.responseCode!=1){
								tokenInvalid(data);
								return;
								}
						if(data.responseInfo.responseMessage == '成功删除文件') {
							mui.toast(data.responseInfo.responseMessage);
							$('.footer').hide();
							$('.circle').css('padding', '4px').css('top', '30px').removeClass('padding mui-icon mui-icon-checkmarkempty');
							searchIng();
						} else {
							mui.toast(data.responseInfo.responseMessage);
							return;
						}
					}
				});
			}

			/*分享*/
			$('.op').on('tap', function(e) {
				var id = $(this).data("id");
				filiList.fileIdList = filiList.fileIdList.substring(1)
				$.ajax({
					type: 'POST',
					url: userInfo.url + '/cloud/shareFile?type=json&tokenId=' + userInfo.tokenId + "&projectId=" + userInfo.projId + "&groupId=" + filiList.groupId + "&shareType=" + id + "&shareName=" + filiList.shareName[0] + "&fileIdList=" + filiList.fileIdList,
					beforeSend: function(request) {},
					dataType: 'json',
					success: function(data) {
						//登陆失效
							if(data.responseInfo.responseCode!=1){
								tokenInvalid(data);
								return;
								}
						console.log("4.9", data);
						mui.toast(data.responseInfo.responseMessage);
						if(id == 2) {
							mui.alert("您的分享链接为：" + data.shareInfo.shareUrl + "\n" + "密码为：" + data.shareInfo.sharePassword);
						}
						if(id == 3) {
							mui.alert("您的分享链接为：" + data.shareInfo.shareUrl);
						}
						mui('#share').popover('toggle');
						$('.footer').hide();
						$('.circle').css('padding', '4px').css('top', '30px').removeClass('padding mui-icon mui-icon-checkmarkempty');
					}
				});
			});
			//mui('#home_scroll').scroll();
		</script>
	</body>

</html>